package top.huntwolf.admin.dao;


import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import top.huntwolf.admin.pojo.book.NewBook;
import top.huntwolf.admin.pojo.bookStatus;

import java.util.List;


@Mapper
@Repository
public interface bookStatusDao {

    /*CMS获取书本信息*/
    List<NewBook> selectBookInfo();

    /*CMS获取根据isbn获取书本信息*/
    List<NewBook> selectBookInfoByIsbn(String isbn);

    /*CMS获取根据作者获取书本信息*/
    List<NewBook> selectBookInfoByTitle(String searchField);

    int addStatus(bookStatus bookStatus);

    int deleteStatus(String id);

    int updateStatus(List<bookStatus> bookStatuses);



}
